package com.zsc.wxm.ysh.anjo.member.feign;

import com.zsc.wxm.ysh.anjo.member.feign.fallback.ResourcesServiceImpl;
import com.zsc.wxm.ysh.anjo.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述：
 *
 * @author playmaker
 * @since 2021/3/12 23:55
 */
@FeignClient(value = "anjo-house-service", fallback = ResourcesServiceImpl.class)
public interface ResourcesService {

    /**
     * 获取房东房源
     *
     * @param username
     * @param phone
     * @return
     */
    @PostMapping("/house/resources/get-user-house")
    Result getUserHouseByNameAndPhone(@RequestParam("username") String username, @RequestParam("phone") String phone);
}
